<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>歌词滚动</title>

    <style>
      * {
        margin: 0;
        padding: 0;
        user-select: none;
      }
      html {
        height: 100%;
      }

      body {
        color: #009ad6;
        text-align: center;
        height: 100%;
        background-image: url(./assets/dengziqi.jpg);
        background-repeat: no-repeat;
        background-size: cover;
        background-position: -400px;
        overflow: hidden;
      }
      .lrc-container {
        height: calc(100vh - 360px);
        overflow: hidden;
        margin-top: 180px;
      }

      ul,
      li {
        padding: 0;
        margin: 0;
        list-style: none;
        transition: 0.6s;
      }

      .play-ico {
        display: block;
        width: 36px;
        height: 36px;
        background-image: url(./assets/mcbg.png);
        background-repeat: no-repeat;
        background-size: 100%;
        position: fixed;
        right: 50px;
        top: 50px;
      }
      audio {
        width: 100%;
        height: 100%;
        opacity: 0;
        display: none;
      }

      .lrc-container ul > li {
        height: 36px;
        line-height: 36px;
        font-size: 18px;
        font-family: '楷体' !important;
        transition: 0.6s;
      }
      .lrc-container ul > li.active {
        color: #fff;
        transform: scale(1.2);
      }

      @-webkit-keyframes rotataZ {
        0% {
          -webkit-transform: rotateZ(0deg);
        }
        100% {
          -webkit-transform: rotateZ(360deg);
        }
      }

      .stop {
        background-position: left bottom;
      }

      .on {
        background-position: 0px 1px;
        animation: rotataZ 1.2s linear infinite;
      }
    </style>
  </head>
  <body>
    <span class="play-ico">
      <audio src="./assets/taohuanuo.mp3" controls></audio>
    </span>

    <!-- <button id="clickBtn">点击</button> -->
    <div class="lrc-container">
      <ul></ul>
    </div>
    <script src="./js/data.js"></script>
    <script src="./js/lrc.js"></script>
  </body>
</html>
